package request

import "ahutoj/web/io/constanct"

type Problem struct {
	PID         *string               `json:"PID"`
	PType       constanct.ProblemType `json:"PType"`//跟题目编号有关
	Title       *string               `json:"Title"`
	Description *string               `json:"Description"`
	Input       *string               `json:"Input"`
	Output      *string               `json:"Output"`
	LimitTime   *int64                `json:"LimitTime"`
	LimitMemory *int64                `json:"LimitMemory"`
	Sample_input *string              `json:"Sample_input"`
	Sample_output *string             `json:"Sample_output"`
	Hit         *string               `json:"Hit"`
	Label       *string               `json:"Label"`
	Default     Default               `json:"Default,omitempty"`
	Origin      *int64                `json:"Origin"`//是否是远程
	OriginPID   *string               `json:"OriginPID"`//远程判题编号
	ContentType int64                 `json:"ContentType"`//md/其他
	Visible     int                   `json:"Visible"`
	SpjJudge    *string               `json:"SpjJudge"`
	SpjSource   *string               `json:"SpjSource"`
	Source      *string               `json:"Source"`
	OJPlatform  *string               `json:"OJPlatform"`
}
type EditProblemReq Problem
type AddProblemReq Problem
type DeleteProblemReq struct {
	PIDs []string `json:"PIDs"`
}
type Default struct{
	DefaultTitile *bool 	 `json:"DefaultTitile,omitempty"` 
	DefaultDescription *bool `json:"DefaultDescription,omitempty"`
}
type ProblemListReq struct {
	GetListReq
	PType *constanct.ProblemType `Query:"PType"`
	Label *string                `Query:"Label"`
	Keyword *string              `Query:"Keyword"`
}
